﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Media.Imaging;

namespace OnlineBattlemat
{
    public class Token
    {
        #region Properties
		private BitmapImage m_Image;
		private string m_Name = "";

		/// <summary>
		/// The image of the token
		/// </summary>
		public BitmapImage Image
		{
			get
			{
				return m_Image;
			}
			set
			{
				m_Image = value;
			}
		}

        /// <summary>
        /// The name of the token
        /// </summary>
		public string Name
        {
            get
            {
                return m_Name;
            }
            set
            {
                m_Name = value;
            }
        }
        #endregion

        #region Constructor
        public Token()
		{
			m_Name = string.Empty;
			m_Image = null;
		}

		public Token(string name, string image)
		{
			m_Name = name;
			m_Image = new BitmapImage(new Uri(image, UriKind.Relative));
		}

		public Token(string name, BitmapImage image)
		{
			m_Name = name;
			m_Image = image;
		}

		#endregion
    }
}
